package com.tech.zhidengxian.model.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.google.gson.annotations.SerializedName;
import com.tech.zhidengxian.mapper.typehandler.JsonTypeHandler;
import com.tech.zhidengxian.model.constant.GoodsState;
import com.tech.zhidengxian.model.constant.TransportType;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName(value = "zdx_goods",autoResultMap = true)
public class GoodsDO {

  @TableId(value = "id",type = IdType.AUTO)
  private Long id;
  @TableField(typeHandler = JsonTypeHandler.class)
  private List<CosDO> imageUrl;

  @TableField(typeHandler = JsonTypeHandler.class)
  private UserDO publisherInfo;

  private Date publishTime;
  private Date updateTime;
  private Boolean isDeleted;
  /**商品状态**/
  private GoodsState goodsState;
  private Double price;
  private String city;
  private String school;
  private Long uid;
  private String detail;
  private Long browseCount;
  private Long commentCount;
  private Long collectCount;
  /**运输方式**/
  private TransportType transportType;
  private String category;
  private Double freight;



}
